package com.ruoyi.trip.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 行程管理对象 trip
 * 
 * @author ruoyi
 * @date 2024-07-17
 */
public class Trip extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 行程id */
    private Long id;

    @Excel(name = "出发地")
    private String startAddress;
    private Long citId;
    private Long proId;
    private String phoneNumber;

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public Long getProId() {
        return proId;
    }

    public void setProId(Long proId) {
        this.proId = proId;
    }

    public String getStartAddress() {
        return startAddress;
    }

    public void setStartAddress(String startAddress) {
        this.startAddress = startAddress;
    }

    public Long getCitId() {
        return citId;
    }

    public void setCitId(Long citId) {
        this.citId = citId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    /** 主题 */
    @Excel(name = "基地名")
    private String name;

    @Excel(name = "主题")
    private String title;
    /** 行程日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "行程日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startDate;

    /** 行程内容 */
    @Excel(name = "行程内容")
    private String content;

    /** 基地编号 */
    @Excel(name = "基地编号")
    private Long pid;

    /** 行程人数 */
    @Excel(name = "行程人数")
    private Long countNum;

    /** 本次行程详情 */
    @Excel(name = "本次课程学时")
    private Integer studyCourse;

    public Integer getStudyCourse() {
        return studyCourse;
    }

    public void setStudyCourse(Integer studyCourse) {
        this.studyCourse = studyCourse;
    }

    @Excel(name = "本次课程培训费")
    private Integer price;

    public Integer getPrice() {
        return price;
    }

    public void setPrice(Integer price) {
        this.price = price;
    }

    /** 发布人 */
    @Excel(name = "发布人")
    private String username;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setStartDate(Date startDate) 
    {
        this.startDate = startDate;
    }

    public Date getStartDate() 
    {
        return startDate;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setPid(Long pid) 
    {
        this.pid = pid;
    }

    public Long getPid() 
    {
        return pid;
    }
    public void setCountNum(Long countNum) 
    {
        this.countNum = countNum;
    }

    public Long getCountNum() 
    {
        return countNum;
    }
    public void setUsername(String username) 
    {
        this.username = username;
    }

    public String getUsername() 
    {
        return username;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
                .append("title", getTitle())
            .append("startDate", getStartDate())
            .append("createTime", getCreateTime())
            .append("content", getContent())
            .append("pid", getPid())
            .append("countNum", getCountNum())
            .append("username", getUsername())
            .toString();
    }
}
